﻿// Copyright (C) 2012 Kim Jensen, TaskJunction.com
// Licensed under the MIT license: http://www.opensource.org/licenses/mit-license.php
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using TaskJunctionLib.Model;
using TaskJunctionLib.Mapping;

namespace TaskJunctionLib.Repository
{
    public interface IRepository<T, TMapper>
        where T : ModelEntity
        where TMapper : IObjectMapper<T>, new()
    {

        T Load(int id);
        void Save(T obj);
        void Delete(T obj);
    }
}
